package com.jxc.jxc01.grc.entity;

import java.util.Date;
import java.util.Objects;

public class Procurement {
    private int id;
    private int purchaseId;
    private String purchaseName;
    private String goodsName;
    private String classs;
    private String purchaseSupplierName;
    private String unit;
    private String purchaseNum;
    private double unitPrice;
    private String totalPrice;
    private String purchaseTime;
    private String status;
    private String note;


    public Procurement() {
    }

    public Procurement(int id, int purchaseId, String purchaseName, String goodsName, String classs, String purchaseSupplierName, String unit, String purchaseNum, double unitPrice, String totalPrice, String purchaseTime, String status, String note) {
        this.id = id;
        this.purchaseId = purchaseId;
        this.purchaseName = purchaseName;
        this.goodsName = goodsName;
        this.classs = classs;
        this.purchaseSupplierName = purchaseSupplierName;
        this.unit = unit;
        this.purchaseNum = purchaseNum;
        this.unitPrice = unitPrice;
        this.totalPrice = totalPrice;
        this.purchaseTime = purchaseTime;
        this.status = status;
        this.note = note;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return purchaseId
     */
    public int getPurchaseId() {
        return purchaseId;
    }

    /**
     * 设置
     * @param purchaseId
     */
    public void setPurchaseId(int purchaseId) {
        this.purchaseId = purchaseId;
    }

    /**
     * 获取
     * @return purchaseName
     */
    public String getPurchaseName() {
        return purchaseName;
    }

    /**
     * 设置
     * @param purchaseName
     */
    public void setPurchaseName(String purchaseName) {
        this.purchaseName = purchaseName;
    }

    /**
     * 获取
     * @return goodsName
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置
     * @param goodsName
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * 获取
     * @return classs
     */
    public String getClasss() {
        return classs;
    }

    /**
     * 设置
     * @param classs
     */
    public void setClasss(String classs) {
        this.classs = classs;
    }

    /**
     * 获取
     * @return purchaseSupplierName
     */
    public String getPurchaseSupplierName() {
        return purchaseSupplierName;
    }

    /**
     * 设置
     * @param purchaseSupplierName
     */
    public void setPurchaseSupplierName(String purchaseSupplierName) {
        this.purchaseSupplierName = purchaseSupplierName;
    }

    /**
     * 获取
     * @return unit
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 设置
     * @param unit
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * 获取
     * @return purchaseNum
     */
    public String getPurchaseNum() {
        return purchaseNum;
    }

    /**
     * 设置
     * @param purchaseNum
     */
    public void setPurchaseNum(String purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    /**
     * 获取
     * @return unitPrice
     */
    public double getUnitPrice() {
        return unitPrice;
    }

    /**
     * 设置
     * @param unitPrice
     */
    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * 获取
     * @return totalPrice
     */
    public String getTotalPrice() {
        return totalPrice;
    }

    /**
     * 设置
     * @param totalPrice
     */
    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
     * 获取
     * @return purchaseTime
     */
    public String getPurchaseTime() {
        return purchaseTime;
    }

    /**
     * 设置
     * @param purchaseTime
     */
    public void setPurchaseTime(String purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return note
     */
    public String getNote() {
        return note;
    }

    /**
     * 设置
     * @param note
     */
    public void setNote(String note) {
        this.note = note;
    }

    public String toString() {
        return "Procurement{id = " + id + ", purchaseId = " + purchaseId + ", purchaseName = " + purchaseName + ", goodsName = " + goodsName + ", classs = " + classs + ", purchaseSupplierName = " + purchaseSupplierName + ", unit = " + unit + ", purchaseNum = " + purchaseNum + ", unitPrice = " + unitPrice + ", totalPrice = " + totalPrice + ", purchaseTime = " + purchaseTime + ", status = " + status + ", note = " + note + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Procurement that = (Procurement) o;
        return id == that.id && purchaseId == that.purchaseId && Double.compare(that.unitPrice, unitPrice) == 0 && Objects.equals(purchaseName, that.purchaseName) && Objects.equals(goodsName, that.goodsName) && Objects.equals(classs, that.classs) && Objects.equals(purchaseSupplierName, that.purchaseSupplierName) && Objects.equals(unit, that.unit) && Objects.equals(purchaseNum, that.purchaseNum) && Objects.equals(totalPrice, that.totalPrice) && Objects.equals(purchaseTime, that.purchaseTime) && Objects.equals(status, that.status) && Objects.equals(note, that.note);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, purchaseId, purchaseName, goodsName, classs, purchaseSupplierName, unit, purchaseNum, unitPrice, totalPrice, purchaseTime, status, note);
    }
}
